package com.example.hackaton_it_planet.di

import android.app.Application
import dagger.BindsInstance
import dagger.Component
import dagger.Module

@Component(
    modules = [AppModule::class]
)
interface AppComponent {

    @Component.Builder
    interface Builder {
        @BindsInstance
        fun application(app: Application): Builder

        fun build(): AppComponent
    }
}

@Module(
    includes = [
        DatabaseModule::class,
        ViewModelModule::class,
        AppBindsModule::class,
    ]
)
class AppModule